package cn.sdack.go.auth.controller;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

/**
 * @author sdack
 * @date 2024/2/8
 */
@RestController
public class TestController {

    @GetMapping("/open/authorities")
    public JSONObject authorities(@RequestParam("a") String account) {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("authorities", Arrays.asList("role","group"));
        jsonObject.put("role", "user");
        jsonObject.put("iss", "user");
        return jsonObject;
    }

}
